<?php
require_once("/var/www/html/new/com.inc.php");
$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));
$ac1="100019";
$pw1="jjl4yk11f82ce6c0f33a5c003f2fec56"; //票付通账号跟密码
$s1=new SoapClient("http://open.12301.cc/openService/MXSE.wsdl",array('encoding' =>'UTF-8','cache_wsdl' => 0));//票付通接口地址
$array =array("ac"=>$ac1,"pw"=>$pw1,"in0"=>2669,"in1"=>5404,"in2"=>"20140828001","in3"=>1,"in4"=>1,"in5"=>"2014-08-28","in6"=>"测试pzp","in7"=>"15959110796","in8"=>"","in9"=>0,"in10"=>2,"in11"=>0,"in12"=>"","in13"=>"","in14"=>0,"in15"=>0,"in16"=>2);

//$xml = $s1->__soapCall("PFT_Order_Submit",$array);

$money_xml = $s1->__soapCall("PFT_Member_Fund",array("ac"=>$ac1,"pw"=>$pw1,2,$array['in16'])); //查询供应商给的授信额度
if($money_xml->Rec->UUbasecredit < 50000)
 { $str="select  mobile from pft_member where account=$ac1";
		$GLOBALS['le']->query($str);
		$member_tel=$GLOBALS['le']->fetch_assoc();
	$send_note = $s->Send_SMS_G($member_tel['mobile'],"您的账户余额或授信余额已不足500，请尽快充值或者通知供应商【票付通】");
	if($send_note==100)
	echo "通知商家成功";
	else  echo "通知失败";
 }

?>